package com.qww.exec05;


class B {
    B() { System.out.println("B constructor"); }
}

class A {
    A() { System.out.println("A constructor"); }
}

class C extends A {
    public B b = new B();
}

public class Exec05 {
    public static void main(String[] args) {
        new C();
    }
}

/*运行结果
A constructor
B constructor
*/